<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>租付通 - 收入管理</title>
    {include file="common/header-sub" /}
    <link rel="stylesheet" href="<?=STATIC_URL?>assets/build/<?=LOCAL_DIR?>js/widget/bootstrap-datepicker/css/bootstrap-datepicker3.min.css">
    <link rel="stylesheet" href="<?=STATIC_URL?>assets/build/<?=LOCAL_DIR?>css/zft-income.all.css?<?=st?>" />
</head>

<body>
    <div class="g-content">
        <div id="cntBox"></div>
        <div class="m-head_tab" id="headTab">
            <?php if (isset($dtype)) { ?>
            <?php if(in_array($dtype, [1, 3, 4, 5, 6])) { ?>
            <span class="m-head_tab_title gather" id="tabGet">收款</span>
            <?php }?>
            <?php if(in_array($dtype, [3, 4])) { ?>
            <span class="m-head_tab_title noactive pay" id="tabPay">付款</span>
            <?php }?>
            <?php }?>
        </div>


        <!-- 收款 -->
        <div id="gather">
            <div class="m-box">
                <span class="rem-1">时间:</span>
                <input id="schGather" class="m-form_control  m-w-15 schInp" placeholder="请选择" data-sch="1" data-type="gather" readonly />
                <button class="m-btn m-btn_ol_default z-fr" id="expBtn"> <i class="uptic"></i>导出</button>

                <span class="rem-1">楼宇名称： </span>
                <select class="m-form_control buildingId" data-type="gather" id="gatherBuildId">
                    <option value="0">全部</option>
                </select>
            </div>
            <div id="gatherCntBox">

            </div>
            <div class="h40" data-type="gather">
                <div class="paginationWrap"></div>
            </div>

            <table class="g-table">
                <thead>
                    <th>合同编号</th>
                    <th>楼宇名称</th>
                    <th>门牌号</th>
                    <th>倒计时</th>
                    <th>租户</th>
                    <th>联系电话</th>
                    <th>出账日期</th>
                    <th>到期时间</th>
                    <th>账单周期</th>
                    <th>金额</th>
                    <th>结算状态</th>
                </thead>
            </table>
            <div class="u-div_overflow_x">
                <div class="u-div_overflow">
                    <table class="g-table">
                        <tbody id="tbody">
                        </tbody>
                    </table>
                </div>
            </div>
            <div class="h40" data-type="gather">
                <div id="paginationWrap" class="paginationWrap"></div>
            </div>
        </div>

        <!-- 付款 -->
        <div id="pay" style="display: none">
            <div class="m-box">
                <span class="rem-1">时间:</span>
                <input id="schPay" class="m-form_control m-w-15 schInp" data-type="pay" data-sch="1" readonly/>
                <span class="rem-1">楼宇名称： </span>
                <select class="m-form_control buildingId" data-type="pay" id="payBuildId">
                    <option value="0">全部</option>
                </select>
            </div>
            <div id="payCntBox">
            </div>
            <div class="h40" data-type="pay">
                <div class="paginationWrapPay"></div>
            </div>

            <table class="g-table">
                <thead>
                    <th>楼宇名称</th>
                    <th>区域</th>
                    <th>商圈</th>
                    <th>托管模式</th>
                    <th>出租率</th>
                    <th>应得分成</th>
                    <th>已得分成</th>
                    <th>应付房东</th>
                    <th>已付房东</th>
                    <th>总面积</th>
                    <th>已出租面积</th>

                </thead>
            </table>
            <div class="u-div_overflow">
                <table class="g-table">
                    <tbody id="tbodyPay">
                    </tbody>
                </table>
            </div>
            <div class="h40" data-type="pay">
                <div id="paginationWrapPay" class="paginationWrapPay"></div>
            </div>
        </div>
    </div>

    {include file="common/footer-sub" /}
    <script type="text/javascript" src="<?=STATIC_URL?>assets/build/<?=LOCAL_DIR?>js/widget/bootstrap-datepicker/js/bootstrap-datepicker.min.js"></script>
    <script type="text/javascript" src="<?=STATIC_URL?>assets/build/<?=LOCAL_DIR?>js/widget/bootstrap-datepicker/js/bootstrap-datepicker.zh-CN.min.js"></script>
    <script type="text/javascript" src="<?=STATIC_URL?>assets/build/<?=LOCAL_DIR?>js/zft-income.all.js?<?=st?>"></script>
</body>

</html>